package biz.obake.team.touchprotector.ui;

import android.content.SharedPreferences;
import android.os.Bundle;
import biz.obake.team.touchprotector.R;
import biz.obake.team.touchprotector.g.a;

public class Tab_Hardkeys extends a {
    public void onCreatePreferences(Bundle bundle, String str) {
        setPreferencesFromResource(R.xml.ui_tab_hardkeys, str);
    }

    /* access modifiers changed from: protected */
    public void onPrefChanged(SharedPreferences sharedPreferences, String str) {
        if (str.equals("unlock_volup") && a.g("unlock_volup")) {
            prefSwitch("unlock_volup_long", false);
            prefSwitch("unlock_volup_twice", false);
        }
        if (str.equals("unlock_volup_long") && a.g("unlock_volup_long")) {
            prefSwitch("unlock_volup", false);
            prefSwitch("unlock_volup_twice", false);
        }
        if (str.equals("unlock_volup_twice") && a.g("unlock_volup_twice")) {
            prefSwitch("unlock_volup", false);
            prefSwitch("unlock_volup_long", false);
        }
        if (str.equals("unlock_voldown") && a.g("unlock_voldown")) {
            prefSwitch("unlock_voldown_long", false);
            prefSwitch("unlock_voldown_twice", false);
        }
        if (str.equals("unlock_voldown_long") && a.g("unlock_voldown_long")) {
            prefSwitch("unlock_voldown", false);
            prefSwitch("unlock_voldown_twice", false);
        }
        if (str.equals("unlock_voldown_twice") && a.g("unlock_voldown_twice")) {
            prefSwitch("unlock_voldown", false);
            prefSwitch("unlock_voldown_long", false);
        }
        if (str.equals("unlock_camera") && a.g("unlock_camera")) {
            prefSwitch("unlock_camera_long", false);
        }
        if (str.equals("unlock_camera_long") && a.g("unlock_camera_long")) {
            prefSwitch("unlock_camera", false);
        }
        if (str.equals("unlock_back") && a.g("unlock_back")) {
            prefSwitch("unlock_back_long", false);
        }
        if (str.equals("unlock_back_long") && a.g("unlock_back_long")) {
            prefSwitch("unlock_back", false);
        }
    }
}
